#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2022/2/15 10:58
# @Author  : ldh
from basic.device.Android import Android
from commen.page.awz.awz_myinfo_page import awz_myinfo_page


class awz_login_page(Android) :
    inputPhoneNum = "cn.cloudbae.lovewuzhou:id/etInputPhoneNum"  # 输入手机号框
    inputPwd = "cn.cloudbae.lovewuzhou:id/etInputPwd"  # 输入密码框
    loginBtm = "cn.cloudbae.lovewuzhou:id/tvLogin"  # 【登录】

    # 账号+密码登录
    @classmethod
    def loginByPwd(cls, phoneNumber, pwd) :
        awz_myinfo_page.open_mypage()
        awz_myinfo_page.clickloginBtm()
        print("选择账号密码登录")
        cls.poco(text = "账号密码登录").click()
        cls.poco(cls.inputPhoneNum).set_text(phoneNumber)
        cls.poco(cls.inputPwd).set_text(pwd)
        cls.poco(cls.loginBtm).wait(3).click()
